<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title><?php echo $is_titulo; ?></title> 
	
	<link rel="stylesheet" href="./css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/grid.css" type="text/css" media="screen" title="no title" />	
	<link rel="stylesheet" href="./css/layout.css" type="text/css" media="screen" title="no title" />	
	
	<link rel="stylesheet" href="./css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="./css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="./css/custom.css" type="text/css" media="screen" title="no title">

<script src="./js/jquery/jquery-1.5.2.min.js"></script>
</head> 
 
<body> 

<div id="wrapper">
	
	<div id="top">
		
		<div class="content_pad">			
			<ul class="right">
				<li><a href="opciones" onclick="javascript:return false;" class="top_icon"><span class="ui-icon ui-icon-person"></span>Sesi&oacute;n como <?php echo $_SESSION["usu_nombreusuario"]; ?> (<?php echo $_SESSION["perf_descripcion"]; ?>)</a></li>
				<!-- <li><a href="#" onclick="javascript:return false;" class="new_messages top_alert">Mensaje</a></li> -->
				<!-- <li><a href="#" onclick="javascript:return false;">Opciones</a></li> -->
				<!-- <li><a href="./php/salir.php">Salir</a></li> 
				<li><a href="./include/inc_salir.php">Salir</a></li>-->
				<li><a href="?salir">Salir</a></li>
			</ul>
		</div> <!-- .content_pad -->
		
	</div> <!-- #top -->	
	
	<div id="header">
		
		<div class="content_pad">
			<h1><a href="main.php"><?=NOMBRE_SITIO;?></a></h1>
			
			<ul id="nav">
				<li class="nav_current nav_icon"><a href="main.php"><span class="ui-icon ui-icon-home"></span>Inicio</a></li>
				

				<li class="nav_dropdown nav_icon">
					<a href="javascript:;"><span class="ui-icon ui-icon-gripsmall-diagonal-se"></span>Par&aacute;metro</a>
					
					<div class="nav_menu">			
						<ul>
						
							<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 5, 2) ){ ?>
								<li><a href="?cliente">Cliente</a></li>	
							<?php } ?>
							<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 21, 2)){ ?>
								<li><a href="?proveedor">Proveedor</a></li>	
							<?php } ?>
							<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 31, 2)){ ?>
								<li><a href="?articulo">Art&iacute;culo</a></li>	
							<?php } ?>
						</ul>
						
					</div>
				</li>
				
				<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 90, 2)){ ?>
				<li class="nav_dropdown nav_icon">
					<a href="javascript:;"><span class="ui-icon ui-icon-gripsmall-diagonal-se"></span>Sistema</a>
					
					<div class="nav_menu">			
						<ul>
						
							<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 91, 2)){ ?>
								<li><a href="?usuario">Usuario</a></li>	
							<?php } ?>
							<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 92, 2)){ ?>
								<li><a href="?perfil">Perfil</a></li>	
							<?php } ?>
							<?php if( f_PDO_validar_permiso($_SESSION["perf_codigo"], 93, 2)){ ?>
								<li><a href="?permiso">Permiso</a></li>	
							<?php } ?>
						</ul>
						
					</div>
				</li>
				<?php } ?>
				<!--
				<li class="nav_icon"><a href="./pages/widgets.html"><span class="ui-icon ui-icon-gear"></span>Widgets</a></li>
				<li class="nav_icon"><a href="./pages/reports.html"><span class="ui-icon ui-icon-signal"></span>Reports</a></li>
				
				<li class="nav_dropdown nav_icon_only">
					<a href="javascript:;">&nbsp;</a>
					
					<div class="nav_menu">
						
						<ul>
							<li><a href="javascript:;">Overflow Menu</a></li>
							<li><a href="javascript:;">Items Can</a></li>
							<li><a href="javascript:;">Go Here</a></li>
						</ul>
					</div>  
					
				</li>
				-->
			</ul>
		</div> <!-- .content_pad -->
		
	</div> <!-- #header -->	
	